$data = "{
  id1: 1,
  groupNumber: 1,
  unitNumber: 1,
  jobCode: '1001',
  personName: '考生1',
  idCardNumber: '100000000000000001',
  code: '100101',
  signed: false,
  randomized: false,
  signedOrigin: false,
  randomizedOrigin: false,
  absent: false
}"

# string
$data = $data -replace "('[^']*')",'string'

# boolean
$data = $data -replace '(true|false)','boolean'

# number
$data = $data -replace '( \d+)',' number'

$data